/*
 * To jimmy vasquez
 * and open the template in the editor.
 */
package com.halos;

import com.halos.common.plugins.IntegraPlugins;
import com.halos.interfaz.vista.IPlugin;
import com.halos.vista.FormPrincipal;
import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;

/**
 *
 * @author josue
 */
public class Halos {

    private final static Logger logger = Logger.getLogger(Halos.class);

    private static void cargarTema() {
        try {
            javax.swing.UIManager.setLookAndFeel(javax.swing.UIManager.getSystemLookAndFeelClassName());
//            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
//                if ("Nimbus".equals(info.getName())) {
//                    javax.swing.UIManager.setLookAndFeel(info.getClassName()+"2");
//                    break;
//                }
//            }
        } catch (ClassNotFoundException ex) {
            logger.error(ex);
        } catch (InstantiationException ex) {
            logger.error(ex);
        } catch (IllegalAccessException ex) {
            logger.error(ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            logger.error(ex);
        }
    }

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        PropertyConfigurator.configure("log4j.properties");
        cargarTema();
//        IntegraPlugins.getPlugins2();
        
        FormPrincipal formPrincipal = FormPrincipal.getInstanceFormPrincipal();
        formPrincipal.setVisible(true);
        
      
        
    }
}
